Add a sleep to a rebuilding test to fix nightlies
authorAlex Crichton <alex@alexcrichton.com>
Thu, 28 Jul 2016 17:26:32 +0000 (10:26 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 28 Jul 2016 17:26:32 +0000 (10:26 -0700)
Just the standard issue with fs timestamps, OSX, etc.

tests/workspaces.rs

index b17b56526ad081afcb4ab83374a78bb19701f087..52799073595b6853cf69999bc6055c27d3a61612 100644 (file)
@@ -5,6 +5,7 @@ extern crate hamcrest;
 use std::io::{Read, Write};
 use std::fs::File;
 
+use cargotest::sleep_ms;
 use cargotest::support::{project, execs};
 use cargotest::support::registry::Package;
 use hamcrest::{assert_that, existing_file, existing_dir, is_not};
@@ -863,6 +864,8 @@ fn rebuild_please() {
     assert_that(p.cargo("run").cwd(p.root().join("bin")),
                 execs().with_status(0));
 
+    sleep_ms(1000);
+
     t!(t!(File::create(p.root().join("lib/src/lib.rs"))).write_all(br#"
         pub fn foo() -> u32 { 1 }
     "#));